﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Game : UnitySingleton<Game> {

    public override void Awake() {
        base.Awake();
    }

    public void EnterGame() {
        this.EnterGameScene();
    }

    public void EnterGameScene() {

        // 释放地图
        GameObject mapPrefab = ResMgr.Instance.GetAssetCache<GameObject>("Maps/Level1/Level1.prefab");
        GameObject map = GameObject.Instantiate(mapPrefab);
        map.name = mapPrefab.name;
        map.AddComponent<MapMgr>().initMap();
        // end

        // 释放UI视图
        // end
    }
}
